import request from '@/utils/request'

// 获取视频列表
export function videoList(data) {
  return request({
    url: `/video/list`,
    data: data,
    method: 'post'
  })
}
//视频的详情
export function videoDetail(openId, data) {
  return request({
    url: `/video/detail/${openId}`,
    data: data,
    method: 'post'
  })
}
//添加数据
export function save(data) {
  return request({
    url: `/monitorVideo/save`,
    data: data,
    method: 'post'
  })
}
//获取数据库列表
export function monitorVideoList(current) {
  return request({
    url: `/monitorVideo/list/${current}`,
    method: 'get'
  })
}
//获取用户信息
export function userInfo(data) {
  return request({
    url: `/base/douyin/info`,
    data: data,
    method: 'post'
  })
}
//获取本地视频的列表
export function getVideoList(page, openIds) {
  return request({
    url: `/douyin/getVideoList/${page}`,
    data: openIds,
    method: 'post'
  })
}

//聚合抖音数据
export function getVideoNum(data) {
  return request({
    url: `/douyin/getVideoNum`,
    data: data,
    method: 'post'
  })
}
